#include <53func.h>
int main(int argc, char *argv[])
{
    // ./3_1million file1
    ARGS_CHECK(argc,2);
    int fd = open(argv[1],O_WRONLY);
    //char ch = '1';
    //for(int i = 0; i < 1000000; ++i){
    //    write(fd,&ch,1);
    //}
    char buf[10000];
    memset(buf,'1',sizeof(buf));
    for(int i = 0; i < 100; ++i){
        write(fd,buf,10000);
    }
    close(fd);
    return 0;
}

